package com.weiz.designpatterns.mediator;

public class CoffeeMachine extends Colleague {

    public CoffeeMachine(Mediator mediator, String name) {
        super(mediator, name);
        mediator.register(name, this);
    }

    @Override
    public void SendMessage(int stateChange) {
        this.GetMediator().getMessage(stateChange, this.name);
    }


    public void StartCoffee(){
        System.out.println("Start Coffee!");
    }

    public void FinishCoffee(){
        System.out.println("Finish Coffee!!");
    }
}